﻿using System;
using System.IO;
using System.Text;
using System.Collections.Generic;

namespace beautifull_world
{
    class helloworld
    {
        static void Main()
        {
            StringBuilder my_str = new StringBuilder();
            my_str.Append("hello this my first project");
            Console.WriteLine(my_str);

            List<list_items> ins_list = new List<list_items>();
            list_items item_1 = new list_items("apple_1", "pear_1", "banana_1");
            list_items item_2 = new list_items("apple_2", "pear_2", "banana_2");
            list_items item_3 = new list_items("apple_3", "pear_3", "banana_3");
            list_items item_4 = new list_items("apple_4", "pear_4", "banana_4");
            list_items item_5 = new list_items("apple_5", "pear_5", "banana_5");
            ins_list.Add(item_1.ins()); 
            ins_list.Add(item_2.ins());
            ins_list.Add(item_3.ins());
            ins_list.Add(item_4.ins());
            ins_list.Add(item_5.ins());
          
            foreach (list_items list in ins_list)
            {
                Console.WriteLine("full list---- {0} is more delicious than {1}\n and more delicious than {2} ", list.apple, list.pear, list.banana);
                Console.WriteLine("print concat:{0}", list.concat());
                Console.WriteLine("****************************************************");
            }
           

        }
        class list_items
        {
            public string apple;
            public string pear;
            public string banana;
            //public string property_apple { set { property_apple = "1"; } get { return property_apple; } }
           
           public list_items(string apple, string pear, string banana)
           {
               this.apple = apple;
               this.pear = pear;
               this.banana = banana;
           }
           public string concat()
           {
               return this.apple+this.banana+this.pear;
           }
            public list_items ins()
           {
               return this;
           }
           

        }
    }
}